package Service.StatisticalReport.StatisticalReportImpl;

import Dao.StatisticalReportDao.DepartmentSummaryDao;
import Model.StatisticalReport.Report;
import Model.StatisticalReport.ReportClass;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DepartmentSummaryService extends AbstractReportService{

    @Resource
    DepartmentSummaryDao dao;

    private static ReportClass reportClass = null;//ReportClass.DEPARTMENT_SUMMARY;

    public DepartmentSummaryService(){
        super(reportClass);
    }

    @Override
    public int addBatch(List<? extends Report> batch) {
        return dao.addBatch(reportClass.getSchemaName(), batch);
    }
}
